package com.pmh.hrs.rhr.exception.handler;

import java.util.Map;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus;

import com.pmh.hrs.rhr.exception.UserAuthhorizedException;
import com.pmh.hrs.rhr.exception.UserPasswordMismatchedException;

@ControllerAdvice
public class UserLoginExceptionHandler {
	
	
	@ResponseStatus(value =HttpStatus.UNAUTHORIZED, reason="UserAuthhorizedException")
	@ExceptionHandler(UserAuthhorizedException.class)
	public Map<String,?> handlerUserAuthhorizedException(UserAuthhorizedException ex){
		return null;
		
	}
	
	@ResponseStatus(value =HttpStatus.FORBIDDEN, reason="UserPasswordMismatched")
	@ExceptionHandler(UserPasswordMismatchedException.class)
	public Map<String,?> handlerUserPasswordMismatchedException(UserPasswordMismatchedException ex){
		return null;
		
	}
	
	
	
	
	
}
